package com.jkoss.wine.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * 登录记录
 * 
 * @Author Jason
 * @Version 1.0, 2018-11-03
 * @See
 * @Since com.jkoss.wine.system.entity
 * @Description: TODO
 */
public class Loginlog extends Model<Loginlog> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId("id")
	private String id;
	/**
	 * 员工id
	 */
	@TableField("employee_id")
	private String employeeId;
	/**
	 * 登录次数
	 */
	@TableField("frequency")
	private Integer frequency;
	@TableField("ip")
	private String ip;
	/**
	 * 登录时间
	 */
	@TableField("login_time")
	private Date loginTime;
	/**
	 * 当操作人为null时，表示自动录入
	 */
	@TableField("operator")
	private String operator;
	/**
	 * 添加时间
	 */
	@TableField("add_time")
	private Date addTime;
	/**
	 * 是否删除：0-未删除、1-已删除、2-不能删除
	 */
	@TableField("del")
	private Integer del;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	public Integer getFrequency() {
		return frequency;
	}

	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Loginlog{" + ", id=" + id + ", employeeId=" + employeeId + ", frequency=" + frequency + ", ip=" + ip + ", loginTime=" + loginTime + ", operator=" + operator + ", addTime=" + addTime + ", del=" + del + "}";
	}
}
